<?php
header('Content-Type: text/html; charset=utf-8'); 

chdir(dirname(__DIR__));

$libPath = 'library';
include $libPath . '/Zend/Loader/AutoloaderFactory.php';

Zend\Loader\AutoloaderFactory::factory(array(
    'Zend\Loader\StandardAutoloader' => array(
        'namespaces' => array(
            'Zend' => $libPath.'/Zend',
            'ZB' => $libPath.'/ZB',
        )
    )
));

Zend\Mvc\Application::init(require 'config/application.config.php')->run();
